package com.aloha.springframework.test.circle;

import com.aloha.springframework.beans.factory.annotation.Autowired;
import com.aloha.springframework.stereotype.Component;

/**
 * @author DaiZhiHeng
 * @date 2023/7/10 9:09
 */
@Component
public class A {

    @Autowired
    private B b;

    public void testA() {
        System.out.println("A类方法执行");
    }

    public void doTestB() {
        b.testB();
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }
}
